package com.zhouxiaoge.zuul;

import com.zhouxiaoge.zuul.filters.MyZuulFilter;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.Bean;

/**
 * @author 周明阳
 * @date 2019/5/10 14:22
 */

@SpringBootApplication
@EnableZuulProxy
public class Zuul_9006 {
    public static void main(String[] args) {
        SpringApplication.run(Zuul_9006.class, args);
    }

    @Bean
    public MyZuulFilter myZuulFilter() {
        return new MyZuulFilter();
    }
}
